input: key_matrix: fix header inclusion
authorStephan Linz <[email protected]>
Thu, 2 Aug 2012 10:49:24 +0000 (10:49 +0000)
committerWolfgang Denk <[email protected]>
Sun, 2 Sep 2012 15:44:20 +0000 (17:44 +0200)
commitc20dbf64a976a40d39694a991d3bf51985cb35f6
tree14919692c4f9208af8129d95950f3fa89814a837
parent8a156fb6e43208e77dd9a8b6265e491bc7814950
input: key_matrix: fix header inclusion

On Microblaze with device tree support enabled we run into
the error below.

I'm not sure, but I think that all source code should include
at least the common.h and just this fix the problem on
Microblaz architecture.

The error is:

In file included from key_matrix.c:29:
include/malloc.h:364: error: conflicting types for 'memset'
include/linux/string.h:71: error: previous declaration of 'memset' was here
include/malloc.h:365: error: conflicting types for 'memcpy'
include/linux/string.h:74: error: previous declaration of 'memcpy' was here

Signed-off-by: Stephan Linz <[email protected]>
CC: Bernie Thompson <[email protected]>
CC: Simon Glass <[email protected]>
CC: Tom Warren <[email protected]>
CC: Michal Simek <[email protected]>
Acked-by: Simon Glass <[email protected]>
Acked-by: Michal Simek <[email protected]>
drivers/input/key_matrix.c